package cn.com.shopec.erp.warehouse.dao.impl;

import org.springframework.stereotype.Repository;

import cn.com.shopec.erp.common.orm.impl.HibernateEntityDao;
import cn.com.shopec.erp.warehouse.dao.IStockTransferProductDao;
import cn.com.shopec.erp.warehouse.entity.StockTransferProduct;

/**
 * 
 * @ClassName: StockOutDaoImpl.java
 * @Description: 出库信息Dao接口实现类
 * @author: zengxuezhou
 * @date: 2016年11月28日 下午2:24:43
 */
@Repository
public class StockTransferProductDaoImpl extends HibernateEntityDao<StockTransferProduct>
		implements IStockTransferProductDao {

	@Override
	public void deleteTransferProductByNo(String transferNo) {
		String hql = "delete from StockTransferProduct as p where p.transferNo = ?";
		getSession().createQuery(hql).setString(0, transferNo).executeUpdate();

	}
}
